package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import com.csun.dsms.validator.DsmsCompanyValidator;
import lombok.Data;

import java.util.Date;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Table(name = "dsms_company")
public class DsmsCompany extends BaseEntity {

    /**
     * 城市
     */
    @Transient
    private Long pid;

    /**
     * 公司名称
     */
    @Transient
    private String name;

    /**
     * 类型
     */
    @Transient
    private String status;

    /**
     * 级别
     */
    @Transient
    private Integer level;

    /**
     * 统一社会信用代码
     */
    @Transient
    private String socialCode;

    /**
     * 法人姓名
     */
    @Column(name = "legal_name")
    private String legalName;

    /**
     * 法人身份证
     */
    @Column(name = "id_card")
    private String idCard;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 备注
     */
    private String remark;

    /**
     * 营业执照
     */
    private String license;

    /**
     * 身份证正面
     */
    @Column(name = "id_card_front")
    private String idCardFront;

    /**
     * 身份证反面
     */
    @Column(name = "id_card_reverse")
    private String idCardReverse;

    @Transient
    private Integer unitType;

    @Transient
    private Long number;

}